package com.softa.bean;

import java.util.HashMap;
import java.util.Map;


/**
 * 排序分页面参数
 * */
public class DataGridModel  implements java.io.Serializable {
	
	private static final long serialVersionUID = 7232798260610351343L;
	
	private int page = 1; //当前页,名字必须为page
	private int start = 0;//起始行
	private int rows = 10; //每页大小,名字必须为rows
	private int end;//分页每页最后一行
	
	
	private String sort = "id"; //排序字段
	private String order = "asc"; //排序规则
 
	private boolean needPage=false;//是否需要分页
	
	private Map<String, Object> params = new HashMap<String, Object>(0);
	
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	
	public int getStart() {
        return start;
    }
    public void setStart(int start) {
        this.start = start;
    }
    public int getRows() {
		return rows;
	}
	public void setRows(int rows) {
		this.rows = rows;
	}
	public String getSort() {
		return sort;
	}
	public void setSort(String sort) {
		this.sort = sort;
	}
	public String getOrder() {
		return order;
	}
	public void setOrder(String order) {
		this.order = order;
	}
	public Map<String, Object> getParams() {
		return params;
	}
	public void setParams(Map<String, Object> params) {
		this.params = params;
	}
	public int getEnd() {
		end=start+rows;
		return end;
	}
	public void setEnd(int end) {
		this.end = end;
	}
    /**
     * @return needPage 
     */ 
    
    public boolean isNeedPage() {
        return needPage;
    }
    /** 
     * @param needPage 要设置的 needPage 
     */
    public void setNeedPage(boolean needPage) {
        this.needPage = needPage;
    }
	
	
}
